package com.hailiang.saas.auth.strategy;

import com.hailiang.saas.auth.emuns.AuthChannelEnum;
import com.hailiang.saas.auth.emuns.AuthEndpointEnum;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface AuthFilterStrategy {

    AuthEndpointEnum getAuthEndpointEnum();

    AuthChannelEnum getAuthChannelEnum();

    /**
     * filter匹配处理的url
     * */
    String filterUrl();

    /**
     * filter请求头匹配
     * */
    Boolean match(HttpServletRequest request, HttpServletResponse response);
}
